package com.hframe.http.client;

import java.net.HttpURLConnection;

/**
 * Created by heqian on 12/6/16.
 */

public interface HttpParam {
    interface Write {
        long write(byte[] buffer, int offset, int count) throws Exception;
    }

    void init(HttpURLConnection conn);

    long getDataLenght();

    String getUrlString();

    boolean read(HttpURLConnection connection, Write write) throws Exception;
}
